package com.ksd.modules.course.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.course.entity.AdminCourseCategory;
import com.ksd.modules.course.po.AdminCourseCategorySavePO;
import com.ksd.modules.course.po.AdminCourseCategorySearchPO;
import com.ksd.modules.course.vo.AdminCourseCategoryVo;

import java.util.List;

public interface IAdminCourseCategoryService extends IBaseService<AdminCourseCategory> {


    /**
     * 查询主板块
     * @return
     */
    List<AdminCourseCategoryVo> findAdminCourseCategoryRoot();

    /**
     * 查询板块信息
     * @param adminCourseCategorySearchPO
     * @return
     */
    List<AdminCourseCategoryVo> findAdminCourseCategory(AdminCourseCategorySearchPO adminCourseCategorySearchPO);

    /**
     * 删除板块
     * @param id
     * @return
     */
    boolean deleteAdminCourseCategoryById(Long id);

    /**
     * 获取板块明细
     * @param id
     * @return
     */
    AdminCourseCategoryVo getAdminCourseCategoryById(Long id);

    /**
     * 保存和修改板块
     * @param adminCourseCategorySavePO
     * @return
     */
    boolean saveUpdateAdminCourseCategory(AdminCourseCategorySavePO adminCourseCategorySavePO);
}
